#---------------------------------------#
#数组转置 arry=(a b c d e f)
#转换成   arry=(f e d c b a)
#!/bin/bash

arry=( a b c d e f )
echo ${arry[*]}
i=0
len=${#arry[*]}

while [ $i -lt $len ]
do
    tmp=${arry[i]}
    arry[i]=${arry[$len-1]}
    arry[$len-1]=$tmp
    let i++ len--   
done
echo ${arry[*]}
echo "You are so clever!"
